﻿using AntdUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsApplication1
{
    public class bmsNVMfaultlogItem : NotifyProperty
    {
        private int numb = 0;
        private int time;
        private int soc;
        private int soh;
        private int battvolt;
        private int battcur;
        private int cellvoltmax;
        private int cellvoltmaxnum;
        private int cellvoltmin;
        private int cellvoltminnum;
        private string faultinfo1;
        private string faultinfo2;
        private string tip;      
        private CellButton[] cellbt;
        private CellProgress cellProgress;
        public int Numb
        {
            get { return numb; }
            set
            {
                if (numb == value) return;
                numb = value;
                OnPropertyChanged(nameof(Numb));
            }
        }
        public int Time
        {
            get { return time; }
            set
            {
                if (time == value) return;
                time = value;
                OnPropertyChanged(nameof(Time));
            }
        }
        public int SOC
        {
            get { return soc; }
            set
            {
                if (soc == value) return;
                soc = value;
                OnPropertyChanged(nameof(SOC));
            }
        }
        public int SOH
        {
            get { return soh; }
            set
            {
                if (soh == value) return;
                soh = value;
                OnPropertyChanged(nameof(SOH));
            }
        }
        public int BattVolt
        {
            get { return battvolt; }
            set
            {
                if (battvolt == value) return;
                battvolt = value;
                OnPropertyChanged(nameof(BattVolt));
            }
        }
        public int BattCur
        {
            get { return battcur; }
            set
            {
                if (battcur == value) return;
                battcur = value;
                OnPropertyChanged(nameof(BattCur));
            }
        }
        public int CellVoltMax
        {
            get { return cellvoltmax; }
            set
            {
                if (cellvoltmax == value) return;
                cellvoltmax = value;
                OnPropertyChanged(nameof(CellVoltMax));
            }
        }
        public int CellVoltMaxNum
        {
            get { return cellvoltmaxnum; }
            set
            {
                if (cellvoltmaxnum == value) return;
                cellvoltmaxnum = value;
                OnPropertyChanged(nameof(CellVoltMaxNum));
            }
        }
        public int CellVoltMin
        {
            get { return cellvoltmin; }
            set
            {
                if (cellvoltmin == value) return;
                cellvoltmin = value;
                OnPropertyChanged(nameof(CellVoltMin));
            }
        }
        public int CellVoltMinNum
        {
            get { return cellvoltminnum; }
            set
            {
                if (cellvoltminnum == value) return;
                cellvoltminnum = value;
                OnPropertyChanged(nameof(CellVoltMinNum));
            }
        }
        public string FaultInfo1
        {
            get { return faultinfo1; }
            set
            {
                if (faultinfo1 == value) return;
                faultinfo1 = value;
                OnPropertyChanged(nameof(FaultInfo1));
            }
        }
        public string FaultInfo2
        {
            get { return faultinfo2; }
            set
            {
                if (faultinfo2 == value) return;
                faultinfo2 = value;
                OnPropertyChanged(nameof(FaultInfo2));
            }
        }
        public string Tip
        {
            get { return tip; }
            set
            {
                if (tip == value) return;
                tip = value;
                OnPropertyChanged(nameof(Tip));
            }
        }
        public CellButton[] OptButton
        {
            get { return cellbt; }
            set
            {
                if (cellbt == value) return;
                cellbt = value;
                OnPropertyChanged(nameof(OptButton));
            }
        }
        public CellProgress CellProgress
        {
            get { return cellProgress; }
            set
            {
                if (cellProgress == value) return;
                cellProgress = value;
                OnPropertyChanged(nameof(CellProgress));
            }
        }
    }
}
